package com.ourteam.product.requirement.api;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/productDefine/productFeatureTree")
public class ProductFeatureTreeBuilderAPI
		extends AbstractProductDefineItemTreeBuilderAPI<ProductFeatureTreeBuilder> {

	@Override
	protected ProductFeatureTreeBuilder getTreeBuilder(HttpServletRequest request) throws Exception {
		return new ProductFeatureTreeBuilder((long) request.getAttribute("productDefineId"),
				(long) request.getAttribute("productVersionId"));
	}

	@Override
	protected Object getInitParameter(HttpServletRequest request) {
		return null;
	}

}
